package com.lagou.feign;

import com.lagou.pojo.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 *
 */
@FeignClient(name="lagou-service-goods")
public interface GoodsFeign {

    @GetMapping("/goods/findById/{id}")
    public Goods findGoodsById(@PathVariable Integer id);
}
